package com.example.intent;

import android.content.Context;
import android.content.SharedPreferences;

/**
 * Created by Administrator on 2017/6/16 0016.
 */

public class Myutil {
    public static SharedPreferences getSharedPre(){
        //获取上下文  再获取共享首选项
        return  MyApplication.getContext().getSharedPreferences("loginnew", Context.MODE_PRIVATE);

    }
}
